#ifndef ITEMLANGUAGE_H
#define ITEMLANGUAGE_H

#include <QObject>

class LanguageItem : public QObject
{
    Q_OBJECT

    Q_PROPERTY(QString name READ name WRITE setName NOTIFY dataChanged)
    Q_PROPERTY(bool odabran READ odabran WRITE setOdabran NOTIFY dataChanged)
    Q_PROPERTY(int idJezika READ idJezika WRITE setIdJezika NOTIFY dataChanged)
    Q_PROPERTY(int index READ index WRITE setIndex NOTIFY dataChanged)
public:
    explicit LanguageItem(QObject *parent = 0);
    LanguageItem(int idJezika, QString name, bool odabran, int index);
    ~LanguageItem();

    QString name();
    bool odabran();
    int index();
    int idJezika();

signals:
    void dataChanged();

public slots:
    void setName(QString name);
    void setOdabran(bool odabran);
    void setIndex(int index);
    void setIdJezika(int idJezika);

private:
    QString m_Name;
    bool m_Odabran;
    int m_Index;
    int m_IdJezika;

};


#endif // ITEMLANGUAGE_H
